package com.ryskoo.common.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 库存出入库类型常量
 * 
 * @author qyc
 *
 */
public class StockIAOTypeConstant {

	/* 采购入库  */
	public static final String STOCKIN_PURCHASE = "purchase";
	
	/* 退货入库  */
	public static final String STOCKIN_RETURN = "return";
	
	/* 盘盈入库  */
	public static final String STOCKIN_SURPLUS = "surplus";
	
	/* 其他入库  */
	public static final String STOCKIN_OTHER = "other";
	
	/* 销售出库  */
	public static final String STOCKOUT_SALE = "sale";
	
	/* 采购退货  */
	public static final String STOCKOUT_RETURN = "return";
	
	/* 盘亏出库  */
	public static final String STOCKOUT_DEFICIT = "deficit";
	
	/* 其他出库  */
	public static final String STOCKOUT_OTHER = "other";
	
	/* 入库类型Map */
	public static Map<String, String> stockInTypeMap = new HashMap<String, String>();
	
	/* 出库类型Map */
	public static Map<String, String> stockOutTypeMap = new HashMap<String, String>();
	
	static {
		stockInTypeMap.put(STOCKIN_PURCHASE, "采购入库");
		stockInTypeMap.put(STOCKIN_RETURN, "退货入库");
		stockInTypeMap.put(STOCKIN_SURPLUS, "盘盈入库");
		stockInTypeMap.put(STOCKIN_OTHER, "其他入库");
		
		stockOutTypeMap.put(STOCKOUT_SALE, "销售出库");
		stockOutTypeMap.put(STOCKOUT_RETURN, "采购退货");
		stockOutTypeMap.put(STOCKOUT_DEFICIT, "盘亏出库");
		stockOutTypeMap.put(STOCKOUT_OTHER, "其他出库");
	}
	
}
